package com.ityj.hospital.service.impl;

import com.ityj.hospital.repository.ScheduleRepository;
import com.ityj.hospital.service.ScheduleService;
import com.ityj.yygh.model.hosp.Schedule;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ScheduleServiceImpl implements ScheduleService {

    @Autowired
    private ScheduleRepository scheduleRepository;

    @Override
    public Schedule getSchedule(String scheduleId) {
        return scheduleRepository.getById(scheduleId);
    }
}
